package com.ssm.controller;
import com.ssm.domain.Module;
import com.ssm.service.*;
import com.sun.org.apache.xpath.internal.operations.Mod;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * https://github.com/FaceGhost/Simple-SSM
 * @author MyComputer
 *
 */
@Controller
@RequestMapping("/manage")
public class testController {
	@Autowired
	private testService testService;
	@RequestMapping(value="/test",method=RequestMethod.GET)
	public String test(){
		System.out.println("hha");
		List<Module> findModle = testService.findModle();
		for(Module mod : findModle){
			System.out.println(mod);
		}
		return "index";
		
	}
	
}
